
Imports System.Xml
Imports System.Web

Imports System.Collections.Generic
Imports DotNetNuke.Services
Imports DotNetNuke.Services.Cache
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization
Imports DotNetNuke.UI.WebControls
Imports DotNetNuke.Entities.Host
Imports DotNetNuke.Entities.Portals
Imports DotNetNuke.Common
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Framework.Providers
Imports Telerik.Web.UI
Imports DotNetNuke.Framework

Namespace Bring2mind.DNN.Modules.DMX.RadEditorDMXBrowserDialog

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' </history>
    Partial Class DMXBrowser
        Inherits DotNetNuke.Framework.PageBase

        Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            DotNetNuke.Framework.AJAX.RegisterScriptManager()
        End Sub

        Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            Dim path As String = Request.QueryString("Path")

            Me.ctlFiles.Configuration.SearchPatterns = New String() {"*.*"}
            Me.ctlFiles.Configuration.ViewPaths = New String() {path}
            Me.ctlFiles.Configuration.DeletePaths = New String() {}
            Me.ctlFiles.Configuration.MaxUploadFileSize = 604800000
            Me.ctlFiles.Configuration.UploadPaths = New String() {path}
            Me.ctlFiles.LocalizationPath = Me.TemplateSourceDirectory & "/App_LocalResources/"
            Me.ctlFiles.Language = CType(Page, PageBase).PageCulture.Name

            Me.ctlFiles.Configuration.ContentProviderTypeName = "Bring2mind.DNN.Modules.DMX.RadEditorContentProvider.ContentProvider, Bring2mind.DNN.Modules.DMX.RadEditorContentProvider"

        End Sub

    End Class

End Namespace
